package com.example.servicea.controller;


import com.example.servicea.feign.ServiceBFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class StringController {

    @RequestMapping("/msg")
    public String msg (){
        return "hello word";
    }


    @Autowired
    ServiceBFeignClient serviceBFeignClient;

    @RequestMapping("/queryb")
    public String queryb (){
        return serviceBFeignClient.msg();
    }

}
